import { get, post } from './http';
import port from './api';
let lottery=port.lottery;
/* 1、登录 */
// export function login (data) {
//   return request({
//     method: 'post',
//     url: config.login.url,
//     data
//   })
// }

// /* 2、检测登陆状态 */
// export function check () {
//   return request({
//     method: 'get',
//     url: config.login.checkUrl
//   })
// }

// /* 3、获取数据 */
// export function getData () {
//   return request({
//     method: 'get',
//     url: config.onload.url
//   })
// }

// /* 4、回传抽中数据 */
// export function postData (data) {
//   return request({
//     method: 'post',
//     url: config.lottery.url,
//     data
//   })
// }

//活动详情
export const getActivityInfo = params => get(lottery + '/lottery/screen/getActivityInfo.json', params)
//查询抽奖参与人数
export const getLotteryUsers = params => get(lottery + '/lottery/screen/getLotteryUsers.json', params)
//中奖名单
export const getLuckyUsers = params => get(lottery + '/lottery/screen/getLuckyUsers.json', params)
//锁屏登录
export const screenLogin = params => post(lottery + '/lottery/screen/login.json', params)
//开始抽奖
export const screenLottery = params => post(lottery + '/lottery/screen/lottery.json', params)
//查询奖项信息
export const getLotteryItemById = params => get(lottery + '/lottery/screen/getLotteryItemById.json', params)

